package net.yeah.mickey_zhouyou.module.booklist.ui;

import java.awt.BorderLayout;

import javax.swing.ImageIcon;
import javax.swing.JSplitPane;

import net.yeah.mickey_zhouyou.framework.frame.BaseModuleTabPane;
import net.yeah.mickey_zhouyou.framework.util.Constants;

public class BooklistTabPane extends BaseModuleTabPane {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8644057228682042233L;

	public BooklistTabPane() {
		super("书单", new ImageIcon(Constants.ICON_PATH_BOOKLIST), "管理我的书单");

		// 分割面板，左边是书藉分类（以树的形式），右边是书籍列表及书籍详情。
		JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
				true, CategoryPane.getPane(), BookListAndDetailPane.getPane());
		splitPane.setOneTouchExpandable(true);
		splitPane.setDividerLocation(200);

		super.add(splitPane, BorderLayout.CENTER);
	}

}
